package com.huidatech.demo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * ClassName: Emp
 * Function:
 * Date:      2021/10/7 9:05 下午
 * author     Wangzhuang2
 * version    V1.0
 * TODO:
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class Emp extends Model <Emp>{

    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    private Integer age;

    @TableLogic
    @TableField(select = false)
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}